//社区路由
export default {
  path: "/community",
  name: "Community",
  meta: {
    title: "社区管理",
    roles: [1],
    rank: 1
  },
  children: [
    {
      path: "/community/residential/list",
      name: "residentialList",
      component: () => import("@/views/residential/list.vue"),
      meta: {
        title: "小区列表",
        roles: [1]
      }
    },
    {
      path: "/community/residential/info/:id",
      name: "residentialInfo",
      component: () => import("@/views/residential/info.vue"),
      meta: {
        title: "小区详情",
        showLink: false,
        roles: [1]
      }
    },
    {
      path: "/community/residential/edit",
      name: "residentialEdit",
      component: () => import("@/views/residential/edit.vue"),
      meta: {
        title: "添加小区",
        showLink: false,
        roles: [1]
      }
    },
    {
      path: "/community/property/list",
      name: "propertyList",
      component: () => import("@/views/property/list.vue"),
      meta: {
        title: "物业列表",
        roles: [1]
      }
    },
    {
      path: "/community/property/info/:id",
      name: "propertyInfo",
      component: () => import("@/views/property/info.vue"),
      meta: {
        title: "物业详情",
        showLink: false,
        roles: [1]
      }
    },
    {
      path: "/community/property/edit",
      name: "propertyEdit",
      component: () => import("@/views/property/edit.vue"),
      meta: {
        title: "添加物业",
        showLink: false,
        roles: [1]
      }
    }
  ]
};
